<template>
  <div class="safety">
    <el-table :data="tableData" border style="width: 100%">

      <el-table-column prop="phone" label="手机号" align="center">
      </el-table-column>
      <el-table-column prop="ordernum" label="订单编号" align="center">
      </el-table-column>
      <el-table-column prop="safetyreason" label="理赔原因" align="center">
      </el-table-column>
      <el-table-column prop="imageViewsName" label="理赔截图" align="center">
      </el-table-column>
      <el-table-column prop="status" label="理赔状态" align="center">
      </el-table-column>


      <!--      <el-table-column-->
      <!--          align="center"-->
      <!--          fixed="right"-->
      <!--          label="操作"-->
      <!--      >-->
      <!--        <template slot-scope="scope">-->
      <!--          <el-button type="text" size="small" v-show="scope.row.status==='待审核'">通过</el-button>-->
      <!--          <el-button type="text" size="small" v-show="scope.row.status==='待审核'">不通过</el-button>-->
      <!--        </template>-->
      <!--      </el-table-column>-->

    </el-table>
  </div>
</template>
<script>
import {safetylist} from '@/api/api.js';

export default {
  data() {
    return {
      tableData: []
    }
  },
  created() {
    this.getData();
  },
  methods: {
    getData(params) {
      safetylist(params)
          .then(res => {
            console.log(res.data);
            this.tableData = res.data.data
          })
    }
  }
}
</script>
<style lang="scss" scoped>
.report {

  margin-top: 20px;
}
</style>